package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("address")
@TableName(value = "address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *序号
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
    * 收件人姓名
    */
    @TableField(value = "recv_name")
    private String recvName;
    /**
    * 联系电话
    */
    @TableField(value = "recv_mobile")
    private String recvMobile;
    /**
    * 省份/直辖市
    */
    @TableField(value = "province")
    private String province;
    /**
    * 地级市
    */
    @TableField(value = "city")
    private String city;
    /**
    * 县级市
    */
    @TableField(value = "district")
    private String district;
    /**
    * 街道/乡镇
    */
    @TableField(value = "street")
    private String street;
    /**
    * 详细地址
    */
    @TableField(value = "detail")
    private String detail;
    /**
    * 是否为默认地址(1:是;2:否)
    */
    @TableField(value = "is_default")
    private Integer isDefault;
    /**
    * 会员用户ID
    */
    @TableField(value = "user_id")
    private Integer userId;

}